import Vue from 'vue'
import VueRouter from 'vue-router'
import zhu from '../views/myhome.vue';

Vue.use(VueRouter)

const routes = [
  // {
  //   path:'/',
  //   redirect:'/zhuYe'
  // },
  {
    path: '/',
    // name: 'home',
    component:zhu,
    // component: () => import( '../views/myhome.vue'),
    children:[
      {
        path: '',
        name: 'zhuYe',
        component: () => import( '../views/zhuYe.vue'),
      },
        {
          path:"shiPing",
          name:"shiPing",
          component:()=> import('../views/shiPing.vue')
        },
        {
          path:"min-shiPing",
          name:"min-shiPing",
          component:()=> import('../views/min-shiPing.vue')
        },
        {
          path:"yanChu",
          name:"yanChu",
          component:()=> import('../views/yanChu.vue')
        },
        {
          path:"woDe",
          name:"woDe",
          component:()=> import('../views/woDe.vue')
        },


    ]
  },
  {
    path:"/XiangQing/:id",
    name:"XiangQing",
    component:()=> import('../xiangQing/XiangQing.vue')
  },
  {
    path:"/myVideo",
    name:"myVideo",
    component:()=> import('../xiangQing/myvideo/myVideo.vue')
  },
  {
    path:"/piao/:id",
    name:"piao",
    component:()=> import('../purchasePiao/piao.vue')
  },
  {
    path:"/mySouSuo",
    name:"pmySouSuoiao",
    component:()=> import('../mySouSuo/Sou.vue')
  },
  {
    path:"/genDuo",
    name:"genDuo",
    component:()=> import('../mySouSuo/genDuo.vue')
  },
  {
    path:"/usedDenglu",
    name:"usedDenglu",
    component:()=> import('../denglu/usedDenglu.vue')
  },
  {
    path:"/cts",
    name:"cts",
    component:()=> import('../ctsChenShi/cts.vue')
  },
  {
    path:"/cinemaXiangqin",
    name:"cinemaXiangqin",
    component:()=> import('../cinemaXiangqin/cinemaDetailsXQ.vue')
  },
  {
    path:"/lunBotu",
    name:"lunBotu",
    component:()=> import('../lunBotu/lunBotu.vue')
  },






]

const router = new VueRouter({
  routes,
  
})

export default router
